package config;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import pojo.Order;
import service.OrderService;

import java.util.List;

public class App {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        Test bean = ctx.getBean(Test.class);
        List<Order> test = bean.test();
        System.out.println(test);
    }

}
